﻿<phone:PhoneApplicationPage 
    x:Class="PhoneAppCheckSensors.PageMotionVisual"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot は、すべてのページ コンテンツが配置されるルート グリッドです-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel は、アプリケーション名とページ タイトルを格納します-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="Sensor Sample" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="PageTitle" Text="Motion" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
        </StackPanel>

        <!--ContentPanel - 追加コンテンツをここに入力します-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <Grid.RowDefinitions>
                <RowDefinition/>
                <RowDefinition/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="200"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Canvas Grid.Column="1" Grid.Row="0" Width="240" Height="180">
                <Image Source="MeterBack.png" Width="240"/>
                <Image Source="Hari.png" Canvas.Left="100" Canvas.Top="30">
                    <Image.RenderTransform>
                        <RotateTransform x:Name="rotationYaw" CenterX="20" CenterY="100" Angle="0"/>
                    </Image.RenderTransform>
                </Image>
            </Canvas>
            <StackPanel Grid.Column="0" Grid.Row="0">
                <TextBlock Text="Yaw" FontSize="32"/>
                <TextBlock Name="tbYaw" FontSize="48"/>
            </StackPanel>
            <Canvas Grid.Column="1" Grid.Row="1" Width="240" Height="180">
                <Image Source="MeterBack.png" Width="240"/>
                <Image Source="Hari.png" Canvas.Left="100" Canvas.Top="30">
                    <Image.RenderTransform>
                        <RotateTransform x:Name="rotationPitch" CenterX="20" CenterY="100" Angle="0"/>
                    </Image.RenderTransform>
                </Image>
            </Canvas>
            <StackPanel Grid.Column="0" Grid.Row="1">
                <TextBlock Text="Pitch" FontSize="32"/>
                <TextBlock Name="tbPitch" FontSize="48"/>
            </StackPanel>
            <StackPanel Grid.Column="0" Grid.Row="2">
                <TextBlock Text="Roll" FontSize="32"/>
                <TextBlock Name="tbRoll" FontSize="48"/>
            </StackPanel>
            <Canvas Grid.Column="1" Grid.Row="2" Width="240" Height="180">
                <Image Source="MeterBack.png" Width="240"/>
                <Image Source="Hari.png" Canvas.Left="100" Canvas.Top="30">
                    <Image.RenderTransform>
                        <RotateTransform x:Name="rotationRoll" CenterX="20" CenterY="100" Angle="0"/>
                    </Image.RenderTransform>
                </Image>
            </Canvas>
        </Grid>
    </Grid>
 
    <!--ApplicationBar の使用法を示すサンプル コード-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>
